package com.designpatterns.adapter.adapter;

import com.designpatterns.adapter.adaptee.Adaptee;
import com.designpatterns.adapter.target.Target;

/**
 * Adapter Class Implements Target Interface
 * 
 * @see Target
 * 
 * @author Haiqi.Wang
 * @since 2013-5-31下午12:57:46
 */
public class Adapter implements Target {

	private Adaptee adaptee;
	public Adapter(Adaptee adaptee) {
		this.adaptee = adaptee;
	}
	
	@Override
	public void adapteeMethod() {
		adaptee.adapteeMethod();
	}

	@Override
	public void adapterMethod() {
		System.out.println("Adapter Method !");
	}

}
